#!/bin/bash

GRADLE="../gradlew -b ../build.gradle -c ../settings.gradle"

echo Please select output:

echo 1.ReleaseAPK
echo 2.TestAPK
read answer

if [ $answer -eq 1 ]
then
    echo "pack ReleaseAPK..."
    ${GRADLE} PACK_RELEASE_APK
elif [ $answer -eq 2 ]
then
    echo "pack TestAPK..."
    ${GRADLE} PACK_TEST_APK
else
    echo "Invalid command!"
fi

echo "pack done"